package Exer03_分支;

import java.util.Scanner;

public class _1_3_3_根据输入的x值输出y2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入：");
        int x = scanner.nextInt();
        int y;
        if (x < 1){
            y = x;
            System.out.println("输出：y = "+ y);
        }else if (x >=1 && x < 10){
            y = (2*x)-1;
            System.out.println("输出：y = "+ y);
        }else if (x >= 10){
            y = (3*x)-11;
            System.out.println("输出：y = "+ y);
        }
        scanner.close();
    }
}
